xen: add generic flag to elf_dom_parms indicating support of unmapped initrd
authorJuergen Gross <jgross@suse.com>
Thu, 12 Nov 2015 13:43:29 +0000 (14:43 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 16 Nov 2015 13:18:55 +0000 (13:18 +0000)
commit06954411ee1410e34719bdb5df71f71d0ac11be0
treeb3d39383d6d01271e2b49cdb3c8bc6f7903d0cbf
parentea7c8a3d0e823d4122dbe4aef40496f9f97c1449
xen: add generic flag to elf_dom_parms indicating support of unmapped initrd

Support of an unmapped initrd is indicated by the kernel of the domain
via elf notes. In order not to have to use raw elf data in the tools
for support of an unmapped initrd add a flag to the parsed data area
to indicate the kernel supporting this feature.

Switch using this flag in the hypervisor domain builder.

Cc: andrew.cooper3@citrix.com
Cc: jbeulich@suse.com
Cc: keir@xen.org
Suggested-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/domain_build.c
xen/common/libelf/libelf-dominfo.c
xen/include/xen/libelf.h